package com.fadadianqi.logistics.inventory.model;

import com.fadadianqi.commons.BaseObject;

import java.util.Date;

/**
 * 进货批次
 * @author aroot
 *
 */

/**
 * @author aroot
 */
public class Batch extends BaseObject {

    /**
     *
     */
    private static final long serialVersionUID = -478091734573578577L;

    public static final String PROP_GOODS_ID = "goodsId";
    public static final String PROP_BRAND_ID = "brandId";
    public static final String PROP_CATEGORY_ID = "categoryId";

    private String brandId;
    private String goodsId;
    private String categoryId;
    private Date addTime;
    private int total;  // 进货数量
    private Double purchase; // 采购价
    private Double discountRate; // 进货折扣比率
    private Double cost; // 成本
    private Double trade; // 批发价 trade price
    private String memo; // 备注描述 一般记录成本计算公式
    private String storehouseId; // 库房


    public Double getTrade() {
        return trade;
    }

    public void setTrade(Double trade) {
        this.trade = trade;
    }

    public String getStorehouseId() {
        return storehouseId;
    }

    public void setStorehouseId(String storehouseId) {
        this.storehouseId = storehouseId;
    }

    public String getCategoryId() {
        return categoryId;
    }

    public void setCategoryId(String categoryId) {
        this.categoryId = categoryId;
    }

    public Double getPurchase() {
        return purchase;
    }

    public void setPurchase(Double purchase) {
        this.purchase = purchase;
    }

    public Double getDiscountRate() {
        return discountRate;
    }

    public void setDiscountRate(Double discountRate) {
        this.discountRate = discountRate;
    }

    public Double getCost() {
        return cost;
    }

    public void setCost(Double cost) {
        this.cost = cost;
    }

    public String getMemo() {
        return memo;
    }

    public void setMemo(String memo) {
        this.memo = memo;
    }

    public String getBrandId() {
        return brandId;
    }

    public void setBrandId(String brandId) {
        this.brandId = brandId;
    }

    public String getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(String goodsId) {
        this.goodsId = goodsId;
    }

    public Date getAddTime() {
        return addTime;
    }

    public void setAddTime(Date addTime) {
        this.addTime = addTime;
    }

    public int getTotal() {
        return total;
    }

    public void setTotal(int total) {
        this.total = total;
    }
}
